//
//  WUserMessage.m
//  xmpp即时通信
//
//  Created by student on 16/1/23.
//  Copyright © 2016年 123. All rights reserved.
//

#import "WUserMessage.h"


@implementation WUserMessage

#pragma mark - 存入密码
+ (void)saveUserMessage:(NSString *)name password:(NSString *)password
{
    [WUserDefaults setObject:name forKey:uname];
    [WUserDefaults setObject:password forKey:upassword];
}

#pragma mark - 读取密码
+ (instancetype)readUserMessage
{
    WUserMessage *user = [[WUserMessage alloc]init];
    user.name = [WUserDefaults objectForKey:uname];
    user.password = [WUserDefaults objectForKey:upassword];
    return user;
}
@end
